/*
 * TermInstance.java
 *
 * Created on June 30, 2007, 7:28 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app.db;

import org.atomojo.app.Nil;

/**
 *
 * @author alex
 */
public class TermInstance<Target>
{
   
   int id;
   Term term;
   Target target;
   Object value;
   
   /** Creates a new instance of TermInstance */
   public TermInstance(int id,Term term, Target target,Object value)
   {
      this.id = id;
      this.term = term;
      this.target = target;
      this.value = value==null ? Nil.getInstance() : value;
   }

   public Term getTerm()
   {
      return term;
   }

   public Target getTarget()
   {
      return target;
   }

   public Object getValue()
   {
      return value;
   }
   
}
